<?php
/* 
 * The test for the ReportManagement Class
 * 
 */
//include_once "src/controller/dbmanagement/DBConnection.php";
include_once "src/controller/blmanagement/ReportManagement.php";

echo "Display the Report that show Users' use of Resources for specified Month<br/>";
$StartDate = '2010-04-01';
$EndDate = '2010-04-30';

if($f = ReportManagement::RptResourcesByUsers($StartDate, $EndDate))
{
   for($x = 0; $x < 5; $x++)
   {
      for($j = 0; $j < 3; $j++)
         echo $f[$x][$j]." ";
      echo "<br/>";
   }
}
else
    echo "<br/> No Record to display";

echo "Display the Report that show use of Resources for specified Month <br/>";
$StartDate = '2010-05-01';
$EndDate = '2010-05-12';

if($f = ReportManagement::RptResourcesforPeriod($StartDate, $EndDate))
{
   for($x = 0; $x < 5; $x++)
   {
      for($j = 0; $j < 3; $j++)
         echo $f[$x][$j]." ";
      echo "<br/>";
   }
}
else
    echo "<br/> No Record to display";


echo "<br/> The End...";

?>
